<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>XX系统 - 房屋信息更新</title>
	<link rel="stylesheet" href="/css/main.css">
	<link rel="stylesheet" href="/css/font-awesome/css/font-awesome.css">
</head>
<body>
<div class="box">

	<h3>编辑修缮记录信息</h3>
	<form action="/repair/edit" method="post">
		<table class="form-table">
			<tr>
				<td>详细地址</td>
				<td colspan="3" class="control">
					<input type="hidden" name="fr_id" value="${flatrepair.fr_id}">
					<input type="text" style="width:250px;" name="hAddress" readonly="readonly" placeholder="详细地址" value="${flatrepair.h_address}">
				</td>
			</tr>
			<tr>
				<td>修缮说明</td>
				<td colspan="3" class="control">
					<input type="text" style="width:250px;" name="fr_explain" placeholder="修缮说明" value="${flatrepair.fr_explain}">
				</td>
			</tr>
			<tr>
				<td>修缮时间</td>
				<td colspan="3" class="control">
					<input type="date" style="width:250px;" name="fr_time"  value="<fmt:formatDate value="${flatrepair.fr_time}" pattern="yyyy-MM-dd" />">
				</td>
			</tr>
			<tr>
				<td>修缮结果</td>
				<td colspan="3" class="control">
				<select name="fr_result"  style="width:250px;">
					<option ${flatrepair.fr_result=="未修好"?"selected":""} value="未修好">未修好</option>
					<option ${flatrepair.fr_result=="修好了"?"selected":""} value="修好了">修好了</option>
				</select>
				</td>
			</tr>
			<tr>
				<td>备注说明</td>
				<td colspan="3" class="control">
				<textarea rows="1" style="height:250px;" cols="0" name="fr_remark" placeholder="备注说明">${flatrepair.fr_remark}</textarea>
				</td>
			</tr>
			<tr>
				<td>修缮人员</td>
				<td colspan="3" class="control">
				<select name="lo_id"  style="width:250px;">
					<c:forEach items="${logs}" var="log">
						<option value="${log.lo_id}" ${log.lo_id==flatrepair.lo_id?"selected":"" }>${log.lo_name}</option>
					</c:forEach>
				</select>
				</td>
			</tr>
		</table>
		<div class="buttons">
			<input class="btn btn-primary va-bottom" type="submit" value="保存">&nbsp;&nbsp;
			<a class="btn btn-default" href="javascript:history.go(-1)">返回</a>
		</div>
	</form>
</div>
</body>
</html>